/**   
 * @Title: TestSendGaj.java
 * @Package com.wx.util
 * @Description: 
 * @author wangxiao
 * @date 2017年11月30日 下午5:21:59
 */
package com.wx.util;

import java.util.HashMap;
import java.util.Map;

import com.xiaoleilu.hutool.http.HttpRequest;
import com.xiaoleilu.hutool.json.JSONUtil;

/**   
 * @ClassName: TestSendGaj
 * @Description: 
 * @author wangxiao
 * @date 2017年11月30日 下午5:21:59
 */
public class TestSendGaj {
	
	public static void main(String[] args) {
		String s = JSONUtil.toJsonStr(getMap());
//		String reString = HttpUtil.P.post("http://124.117.209.140:21021/api/upload", s);
		String result2 = HttpRequest.post("http://124.117.209.140:21021/api/upload").contentType("application/json")
			    .body(s)
			    .execute().body();
		System.out.println(result2);
	}
	public static Map getMap(){
		Map paramMap = new HashMap<>();
		paramMap.put("companyCode", "jdwlxx");
		paramMap.put("companyName", "6501010321001");
		paramMap.put("passWord", "Jdec69705U30");
		paramMap.put("tableName", "JDWLXX");
		Map map = new HashMap<>();
		map.put("ID","11");
		map.put("RJGS","软件公司");
		map.put("WLGSID","123321");
		map.put("WLGSMC","叮当同城汇");
		map.put("WLDZ","新疆乌鲁木齐");
		map.put("FHDMC","新疆乌鲁木齐");
		map.put("FHDZBX","121");
		map.put("FHDZBY","121");
		map.put("SSFJ","新疆乌鲁木齐");
		map.put("SSPCS","乌鲁木齐");
		map.put("SSJWZDM","TEST");
		map.put("SSJWZ","乌鲁木齐");
		map.put("YDH","12110212121");
		map.put("JJRXM","测试");
		map.put("JJRSFZH","421002198711070011");
		map.put("JJRDH","18621849928");
		map.put("JJSJ","2017-11-11 11:11:11");
		map.put("JJDZ","叮当");
		map.put("JJWP","衣服");
		map.put("JS","1");
		map.put("SSJRXM","测测");
		map.put("SJRSFZH","421002198711070022");
		map.put("SJRDZ","乌鲁木齐");
		map.put("SJRDH","18621849928");
		map.put("DHDMC","乌鲁木齐");
		paramMap.put("data", JSONUtil.toJsonStr(map));
		return paramMap;
	}
}